module.exports = function sleep(time) {
  return new Promise((resolve) => {
    setTimeout(function () {
      resolve();
    }, time || 1000);
  });
};
